#ifndef __QUEUE_LOG__
#define __QUEUE_LOG__

#define PRIORITY_DEBUG  0x0001
#define PRIORITY_ERROR  0x0002
#define PRIORITY_WARN   0x0004
#define PRIORITY_INFO   0x0008
#define PRIORITY_ACCESS 0x0010

#ifdef  __cplusplus  //__cpplusplus
extern "C" {
#endif

extern int init_log(const char* logpath);

extern int logger(int level, const char* fmt, ...);

extern int fini_log();

#ifdef  __cplusplus  //__cpplusplus
}
#endif

#endif
